import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { VitePWA } from 'vite-plugin-pwa'
// https://vite.dev/config/
export default defineConfig({
  plugins: [vue(), VitePWA({ 
    registerType: 'autoUpdate',
     injectRegister: 'auto',
     workbox: {
        globPatterns: ['**/*.{js,css,html,ico,png,svg,ttf,woff,woff2}'],
        sourcemap: true
      }
   })]
})
